<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>
<body>
    <script>
        let a= 2;

        let n = Math.pow(a,10);


        let n2 = a ** 10;

        console.log(n);

        console.log(n2);


        // 2进制
        let str2 = 0b1111;
        console.log(str2);

        // 8进制
        let str3 = 0o7615;
        console.log(str3);

        // 

        let num = -123.23123;

        // 去除小数点后面，保留整数
        console.log(Math.trunc(num));

        // 判断是否为正数 1，负数为-1  
        console.log(Math.sign(NaN));


        let n3 = 9;

        // 平方根
        console.log(Math.sqrt(n3));


        let n4 = 64;
        // 立方根
        console.log(Math.cbrt(n4));

        // 勾股定理
        let n5 = 3;
        let n6 = 4;

        // 俩个数字的平方和的开方值
        console.log(Math.hypot(n5,n6));

    </script>
</body>
</html>